
//% color="#ff9f06" iconWidth=50 iconHeight=40
    namespace mind_color{
        
    //% block="初始化TCS34725颜色传感器" blockType="command"
    export function myBlock2(parameter: any, block: any) {
        Generator.addInclude("myBlock8272",`#include <DFRobot_TCS34725_K10.h>`)
        Generator.addObject("myBlock3919",`DFRobot_TCS34725 tcs34725`,"")
        Generator.addCode(`tcs34725.begin();`)
    }
    //% block="读取TCS34725颜色传感器[A][B]" blockType="reporter"
    //% A.shadow="dropdown" A.options="A" 
    //% B.shadow="dropdown" B.options="B" 
    export function myBlock3(parameter: any, block: any) {
        let A= parameter.A.code
        let B= parameter.B.code
        Generator.addCode(`tcs34725.get${A}${B}()`)
    }
    }
    